package model

import (
	"time"
)

type Solution struct {
	Solution_id int `gorm:"primary_key;AUTO_INCREMENT"`
	Problem_id  int
	User_id     string
	Nick        string
	In_date     time.Time
	Language    int
	Ip          string
	Code_length int
	Result      int
	Pass_rate   float64
}

func (Solution) TableName() string {
	return "solution"
}
